from selenium import webdriver
import time
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By

dr = webdriver.Chrome(executable_path=r"D:\Chrome\App\chromedriver.exe")
print(dr)
dr.get("https://www.12306.cn/index/")
lo = (By.ID, "toStationText")
wa = WebDriverWait(driver=dr, timeout=10).until(EC.presence_of_element_located(lo))
inp = dr.find_element_by_id("toStationText")
inp.clear()
inp.send_keys("深圳")
time.sleep(120)
dr.close()